// import './assets/main.css'

import { VueElement, createApp } from 'vue'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import App from './App.vue'
import router from './router'
import '@/assets/css/base.css'
// import axios from './http/axios'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
// VueElement.prototype.$api = axios
// app.use(axios);
app.use(ElementPlus)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

// app.use(ElementPlusIconsVue)
app.use(createPinia())
app.use(router)

app.mount('#app')
